package com.ttg.model.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ttg.common.config.LocalDateTimeDeserializer;
import com.ttg.common.config.LocalDateTimeSerializer;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName(value = "tbl_app_coupon_vip_bind_account")
public class VipBindAccount implements Serializable {
    /**
     * 会员绑定账户id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 会员编号
     */
    @TableField(value = "vip_id")
    private Long vipId;

    @TableField(value = "act_no")
    private Long actNo;
    /**
     * 商户名称
     */
    @TableField(value = "act_name")
    private String actName;
    /**
     * 账号
     */
    @TableField(value = "bank_account")
    private String bankAccount;

    /**
     * 总积分
     */
    @TableField(value = "total_score")
    private Integer totalScore;
    /**
     * 绑定时间
     */
    @TableField(value = "bind_time")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime bindTime;
    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime updateTime;
}
